package com.hedl.classroom.feignclient;

import com.hedl.classroom.feignclient.impl.ContentServiceClientFallbackFactory;
import com.hedl.classroom.model.dto.CoursePreviewDto;
import com.hedl.classroom.model.po.CoursePublish;
import com.hedl.classroom.model.po.Teachplan;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @author Big Watermelon
 * @description 内容管理远程接口
 * @date 2023/12/15/21:45
 */
@FeignClient(value = "content-api",fallbackFactory = ContentServiceClientFallbackFactory.class)
public interface ContentServiceClient {

    @ResponseBody
    @GetMapping("/content/r/coursepublish/{courseId}")
    public CoursePublish getCoursepublish(@PathVariable("courseId") Long courseId);

    @PostMapping("/content/teachplan/{teachplanId}")
    public Teachplan getTeachplan(@PathVariable("teachplanId") Long teachplanId);

}
